package com.djy.model;

import java.util.Arrays;

/**
 * @description: 封装类  酒店表
 * @author: djy
 * @data: 2023/8/2 9:33
 * @version: V1.0
 **/
public class Hotel {
    private int id;//酒店id(对应数据库里的hotel表里的主键id字段)
    private String name;
    private String address;
    private String[] roomType;//房型三种:1大床房,2标间,3豪华双床房
    private double[] marketPrice;//门市价
    private double[] VIPPrice;//会员价
    private int[] voucher;//代金券

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String[] getRoomType() {
        return roomType;
    }

    public void setRoomType(String[] roomType) {
        this.roomType = roomType;
    }

    public double[] getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(double[] marketPrice) {
        this.marketPrice = marketPrice;
    }

    public double[] getVIPPrice() {
        return VIPPrice;
    }

    public void setVIPPrice(double[] VIPPrice) {
        this.VIPPrice = VIPPrice;
    }

    public int[] getVoucher() {
        return voucher;
    }

    public void setVoucher(int[] voucher) {
        this.voucher = voucher;
    }

    public Hotel(int id, String name, String address, String[] roomType, double[] marketPrice, double[] VIPPrice, int[] voucher) {
        this.id = id;
        this.name = name;
        this.address = address;
        this.roomType = roomType;
        this.marketPrice = marketPrice;
        this.VIPPrice = VIPPrice;
        this.voucher = voucher;
    }

    public Hotel(int id) {
        this.id = id;
    }

    public Hotel() {
    }

    @Override
    public String toString() {
        return "酒店信息{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", roomType=" + Arrays.toString(roomType) +
                ", marketPrice=" + Arrays.toString(marketPrice) +
                ", VIPPrice=" + Arrays.toString(VIPPrice) +
                ", voucher=" + Arrays.toString(voucher) +
                '}'+"\n";
    }
}
